﻿/*-------------------------------------------------------------------------
* 命名空间: SiliconSelect.ViewModels/SwitchCrystalProcessBarViewModel
* 类       名: SwitchCrystalProcessBarViewModel
* 功      能:  TD
* 时      间:  2023/9/11 13:50:07
* 版      本:  V1.0
* 作      者:  Fioman
* 格      言:  Talk is cheap,show me the code ^_^
*-------------------------------------------------------------------------*/
using SiliconSelect.Base;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SiliconSelect.ViewModels
{
    public class SwitchCrystalProcessBarViewModel:NotifyBase
    {
        /// <summary>
		/// 进度条当前值
		/// </summary>
		private int _value;

        public int Value
        {
            get { return _value; }
            set
            {
                ValuePercent = $"{value}%";
                SetProperty(ref _value, value);
            }
        }

        /// <summary>
        /// 显示的百分比
        /// </summary>
        private string? _valuePercent;

        public string? ValuePercent
        {
            get { return _valuePercent; }
            set { SetProperty(ref _valuePercent, value); }
        }


        /// <summary>
        /// 是否关闭刷新
        /// </summary>
        public bool CloseRefresh { get; set; }
    }
}
